Component({
    properties: {
        question: {
            type: Object,
            value: {}
        },
        answer: {
            type: Object,
            value: {}
        },
        site: {
            type: Number,
            value: 0
        }
    },
    data: {
        currentSex: ""
    },
    ready: function() {
        var e = this.data.answer.answer;
        if (e) {
            var t = "女" == e ? "girl" : "male";
            console.log("zhix", e), this.setData({
                currentSex: t
            });
        }
    },
    methods: {
        setCurrentSex: function(e) {
            console.log(e);
            var t = e.currentTarget.dataset.sex;
            if (console.log(t), t != this.data.currentSex) {
                this.setData({
                    currentSex: t
                });
                var a = "girl" == t ? "女" : "男";
                this.triggerEvent("quesCallback", {
                    question: this.data.question,
                    site: this.data.site,
                    answer: a
                });
            }
        }
    }
});